package com.foreknow.demo8;

/**
 * 创建一个员工类
 *
 */
public class Employee {
    //编号
    private int eid;
    //姓名
    private String name;
    //性别
    private String sex;
    //年龄
    private int age;
    //工资
    private double salary;
    //部门
    private String department;

    public Employee() {

    }

    public Employee(int eid, String name, String sex, int age, double salary, String department) {
        this.eid = eid;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.salary = salary;
        this.department = department;
    }

    public int getEid() {
        return eid;
    }

    public void setEid(int eid) {
        this.eid = eid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
}
